﻿using System;
using System.Linq;
using ConsoleApp.industry;

namespace ConsoleApp
{
    public class Program
    {
        public static void Main(string[] args)
        {
            //var result = InputNumber(62584);
            //Console.WriteLine("");
            //Console.ReadLine();

            //PhoneRecord record = new PhoneRecord();
            //var isSuccess = record.Init();
            //Console.WriteLine(isSuccess);

            //ContractTool contractTool = new ContractTool();
            //contractTool.Init();

            //var list = FtpHelper.GetFile("/");
            //Console.WriteLine(list);

            //FtpHelper.DeleteFileName("/Global.asax");

            //FtpHelper.DeleteFileName("/wwwroot/index.html");
            //FtpHelper.DeleteFileName("/wwwroot/Global.asax");

            //FtpHelper.FileUpLoad("d:/a/index.aspx");

            WordHelper.auto();

            Console.WriteLine("");
            Console.ReadLine();
        }

        public static Tuple<int, string, string> InputNumber(int number)
        {
            var list = number.ToString().ToCharArray();

            var item1 = number.ToString().Length; // 取位数
            var item2 = list.Aggregate("", (current, value) => current + (value + ",")); // 分别输出每一位 用，隔开显示
            Array.Reverse(list); // 逆序显示
            var item3 = list.Aggregate("", (current, value) => current + (value)); //保存逆序字符串

            var result = new Tuple<int, string, string>(item1, item2, item3);
            return result;
        }
    }
}
